package com.kos.snakerunningsystem.service.impl;

import com.kos.snakerunningsystem.service.SnakeRunningService;
import com.kos.snakerunningsystem.service.impl.utils.SnakePool;
import org.springframework.stereotype.Service;

@Service
public class SnakeRunningServiceImpl implements SnakeRunningService {
    public static final SnakePool snakePool = new SnakePool();
    @Override
    public String addSnake(Integer userId, String snakeCode, String input) {
        System.out.println("add snake" + userId + " " + snakeCode + " " + input);
        snakePool.addSnake(userId,snakeCode,input);
        return "add snake success";
    }
}
